﻿using EntityModel.PageListInfor;
using EntityModel.Product;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace IServices.IProductLend
{
    /// <summary>
    /// 供货商接口
    /// </summary>
    public interface IProductLend
    {
        /// <summary>
        /// 获取所有供货商数据
        /// </summary>
        /// <returns></returns>
        Task<IEnumerable<AikeApplet_ProductLend>> GetAllProductLendDataAsync();

        /// <summary>
        /// 通过供货商编号获取供货商数据
        /// </summary>
        /// <param name="PPID">供货商编号</param>
        /// <returns></returns>
        Task<AikeApplet_ProductLend> GetProductLendDataByPPIDAsync(string PPID);

        /// <summary>
        /// 获取供货商分页数据
        /// </summary>
        /// <param name="_ProductLend">供货商数据集</param>
        /// <returns></returns>
        Task<DbQueryResult> GetProductLendPageListAsync(AikeApplet_ProductLend _ProductLend);

        /// <summary>
        /// 添加供货商
        /// </summary>
        /// <param name="_ProductLend">供货商数据集</param>
        /// <returns></returns>
        Task<bool> AddProductLendAync(AikeApplet_ProductLend _ProductLend);

        /// <summary>
        /// 修改供货商
        /// </summary>
        /// <param name="_ProductLend">供货商数据集</param>
        /// <returns></returns>
        Task<bool> UpdateProductLendAsync(AikeApplet_ProductLend _ProductLend);

        /// <summary>
        /// 删除供货商
        /// </summary>
        /// <param name="PPID">供货商编号</param>
        /// <returns></returns>
        Task<bool> DeletedProductLendAsync(AikeApplet_ProductLend PPID);
    }
}
